﻿import request from '@/utils/request';
// list
export const shiwuList = (params) => {
    return request({
        url: '/jingdianxinxi/page',
        method: 'post',
        data: params,
    })
};
export const shiwuleibieList = (params) => {
    return request({
        url: '/zixishileixing/page',
        method: 'post',
        data: params,
    })
};
export const shiwuDetail = (id) => {
    return request({
        url: '/shiwu/'+id,
        method: 'get',
    })
};
// add
export const shiwuSave = (params) => {
    return request({
        url: '/jingdianxinxi',
        method: 'post',
        data: params,
    })
};
export const shiwuleibieSave = (params) => {
    return request({
        url: '/zixishileixing',
        method: 'post',
        data: params,
    })
};
// updt
export const shiwuEdit = (params) => {
    return request({
        url: '/jingdianxinxi',
        method: 'put',
        data: params,
    })
};
export const tieziEdit = (params) => {
    return request({
        url: '/zixishileixing',
        method: 'put',
        data: params,
    })
};
// delete
export const shiwuDelete = (id) => {
    return request({
        url: '/jingdianxinxi/'+id,
        method: 'delete',
    })
};
export const tieziDelete = (id) => {
    return request({
        url: '/zixishileixing/'+id,
        method: 'delete',
    })
};
// pldel
export const shiwuDeleteList = (shiwus) => {
    return request({
        url: '/shiwu/deleteList',
        data:{list:shiwus},
        method: 'post',
    })
};
// all
export const shiwuAllList = () => {
    return request({
        url: '/shiwu',
        method: 'get',
    })
};

